﻿@page "/"

<PageTitle>Index</PageTitle>


<AuthorizeView>
    <Authorized>
       你好， @context.User?.Identity?.Name <a href="/api/auth/out">登出</a>
    </Authorized>
    <NotAuthorized>
        <form action="api/auth" method="post">
            <button class="btn btn-primary" type="submit">登录</button>
        </form>
    </NotAuthorized>
</AuthorizeView>